(self.webpackChunkpromptmanager=self.webpackChunkpromptmanager||[]).push([[7089],{45649:function(e,a,o){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=o(28610)},81918:function(e,a,o){"use strict";o.d(a,{Z:function(){return w}});var t=o(4942),c=o(63366),n=o(87462),r=o(72791),l=o(28182),i=o(94419),s=o(12065),d=o(74223),u=o(80184),p=(0,d.Z)((0,u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),v=o(42071),f=o(14036),m=o(23701),Z=o(31402),b=o(66934),g=o(75878),C=o(21217);function h(e){return(0,C.Z)("MuiChip",e)}var y=(0,g.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),k=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],S=(0,b.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,a){var o=e.ownerState,c=o.color,n=o.iconColor,r=o.clickable,l=o.onDelete,i=o.size,s=o.variant;return[(0,t.Z)({},"& .".concat(y.avatar),a.avatar),(0,t.Z)({},"& .".concat(y.avatar),a["avatar".concat((0,f.Z)(i))]),(0,t.Z)({},"& .".concat(y.avatar),a["avatarColor".concat((0,f.Z)(c))]),(0,t.Z)({},"& .".concat(y.icon),a.icon),(0,t.Z)({},"& .".concat(y.icon),a["icon".concat((0,f.Z)(i))]),(0,t.Z)({},"& .".concat(y.icon),a["iconColor".concat((0,f.Z)(n))]),(0,t.Z)({},"& .".concat(y.deleteIcon),a.deleteIcon),(0,t.Z)({},"& .".concat(y.deleteIcon),a["deleteIcon".concat((0,f.Z)(i))]),(0,t.Z)({},"& .".concat(y.deleteIcon),a["deleteIconColor".concat((0,f.Z)(c))]),(0,t.Z)({},"& .".concat(y.deleteIcon),a["deleteIcon".concat((0,f.Z)(s),"Color").concat((0,f.Z)(c))]),a.root,a["size".concat((0,f.Z)(i))],a["color".concat((0,f.Z)(c))],r&&a.clickable,r&&"default"!==c&&a["clickableColor".concat((0,f.Z)(c),")")],l&&a.deletable,l&&"default"!==c&&a["deletableColor".concat((0,f.Z)(c))],a[s],a["".concat(s).concat((0,f.Z)(c))]]}})((function(e){var a,o=e.theme,c=e.ownerState,r=(0,s.Fq)(o.palette.text.primary,.26),l="light"===o.palette.mode?o.palette.grey[700]:o.palette.grey[300];return(0,n.Z)((a={maxWidth:"100%",fontFamily:o.typography.fontFamily,fontSize:o.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(o.vars||o).palette.text.primary,backgroundColor:(o.vars||o).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:o.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,t.Z)(a,"&.".concat(y.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity,pointerEvents:"none"}),(0,t.Z)(a,"& .".concat(y.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:o.vars?o.vars.palette.Chip.defaultAvatarColor:l,fontSize:o.typography.pxToRem(12)}),(0,t.Z)(a,"& .".concat(y.avatarColorPrimary),{color:(o.vars||o).palette.primary.contrastText,backgroundColor:(o.vars||o).palette.primary.dark}),(0,t.Z)(a,"& .".concat(y.avatarColorSecondary),{color:(o.vars||o).palette.secondary.contrastText,backgroundColor:(o.vars||o).palette.secondary.dark}),(0,t.Z)(a,"& .".concat(y.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:o.typography.pxToRem(10)}),(0,t.Z)(a,"& .".concat(y.icon),(0,n.Z)({marginLeft:5,marginRight:-6},"small"===c.size&&{fontSize:18,marginLeft:4,marginRight:-4},c.iconColor===c.color&&(0,n.Z)({color:o.vars?o.vars.palette.Chip.defaultIconColor:l},"default"!==c.color&&{color:"inherit"}))),(0,t.Z)(a,"& .".concat(y.deleteIcon),(0,n.Z)({WebkitTapHighlightColor:"transparent",color:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / 0.26)"):r,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / 0.4)"):(0,s.Fq)(r,.4)}},"small"===c.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==c.color&&{color:o.vars?"rgba(".concat(o.vars.palette[c.color].contrastTextChannel," / 0.7)"):(0,s.Fq)(o.palette[c.color].contrastText,.7),"&:hover, &:active":{color:(o.vars||o).palette[c.color].contrastText}})),a),"small"===c.size&&{height:24},"default"!==c.color&&{backgroundColor:(o.vars||o).palette[c.color].main,color:(o.vars||o).palette[c.color].contrastText},c.onDelete&&(0,t.Z)({},"&.".concat(y.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.selectedChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.focusOpacity,"))"):(0,s.Fq)(o.palette.action.selected,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}),c.onDelete&&"default"!==c.color&&(0,t.Z)({},"&.".concat(y.focusVisible),{backgroundColor:(o.vars||o).palette[c.color].dark}))}),(function(e){var a,o=e.theme,c=e.ownerState;return(0,n.Z)({},c.clickable&&(a={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.selectedChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.hoverOpacity,"))"):(0,s.Fq)(o.palette.action.selected,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity)}},(0,t.Z)(a,"&.".concat(y.focusVisible),{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.selectedChannel," / calc(").concat(o.vars.palette.action.selectedOpacity," + ").concat(o.vars.palette.action.focusOpacity,"))"):(0,s.Fq)(o.palette.action.selected,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}),(0,t.Z)(a,"&:active",{boxShadow:(o.vars||o).shadows[1]}),a),c.clickable&&"default"!==c.color&&(0,t.Z)({},"&:hover, &.".concat(y.focusVisible),{backgroundColor:(o.vars||o).palette[c.color].dark}))}),(function(e){var a,o,c=e.theme,r=e.ownerState;return(0,n.Z)({},"outlined"===r.variant&&(a={backgroundColor:"transparent",border:c.vars?"1px solid ".concat(c.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===c.palette.mode?c.palette.grey[400]:c.palette.grey[700])},(0,t.Z)(a,"&.".concat(y.clickable,":hover"),{backgroundColor:(c.vars||c).palette.action.hover}),(0,t.Z)(a,"&.".concat(y.focusVisible),{backgroundColor:(c.vars||c).palette.action.focus}),(0,t.Z)(a,"& .".concat(y.avatar),{marginLeft:4}),(0,t.Z)(a,"& .".concat(y.avatarSmall),{marginLeft:2}),(0,t.Z)(a,"& .".concat(y.icon),{marginLeft:4}),(0,t.Z)(a,"& .".concat(y.iconSmall),{marginLeft:2}),(0,t.Z)(a,"& .".concat(y.deleteIcon),{marginRight:5}),(0,t.Z)(a,"& .".concat(y.deleteIconSmall),{marginRight:3}),a),"outlined"===r.variant&&"default"!==r.color&&(o={color:(c.vars||c).palette[r.color].main,border:"1px solid ".concat(c.vars?"rgba(".concat(c.vars.palette[r.color].mainChannel," / 0.7)"):(0,s.Fq)(c.palette[r.color].main,.7))},(0,t.Z)(o,"&.".concat(y.clickable,":hover"),{backgroundColor:c.vars?"rgba(".concat(c.vars.palette[r.color].mainChannel," / ").concat(c.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(c.palette[r.color].main,c.palette.action.hoverOpacity)}),(0,t.Z)(o,"&.".concat(y.focusVisible),{backgroundColor:c.vars?"rgba(".concat(c.vars.palette[r.color].mainChannel," / ").concat(c.vars.palette.action.focusOpacity,")"):(0,s.Fq)(c.palette[r.color].main,c.palette.action.focusOpacity)}),(0,t.Z)(o,"& .".concat(y.deleteIcon),{color:c.vars?"rgba(".concat(c.vars.palette[r.color].mainChannel," / 0.7)"):(0,s.Fq)(c.palette[r.color].main,.7),"&:hover, &:active":{color:(c.vars||c).palette[r.color].main}}),o))})),I=(0,b.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,a){var o=e.ownerState.size;return[a.label,a["label".concat((0,f.Z)(o))]]}})((function(e){var a=e.ownerState;return(0,n.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===a.size&&{paddingLeft:8,paddingRight:8})}));function x(e){return"Backspace"===e.key||"Delete"===e.key}var w=r.forwardRef((function(e,a){var o=(0,Z.Z)({props:e,name:"MuiChip"}),t=o.avatar,s=o.className,d=o.clickable,b=o.color,g=void 0===b?"default":b,C=o.component,y=o.deleteIcon,w=o.disabled,z=void 0!==w&&w,O=o.icon,R=o.label,F=o.onClick,P=o.onDelete,D=o.onKeyDown,M=o.onKeyUp,E=o.size,T=void 0===E?"medium":E,V=o.variant,L=void 0===V?"filled":V,N=o.tabIndex,q=o.skipFocusWhenDisabled,_=void 0!==q&&q,j=(0,c.Z)(o,k),W=r.useRef(null),K=(0,v.Z)(W,a),U=function(e){e.stopPropagation(),P&&P(e)},A=!(!1===d||!F)||d,B=A||P?m.Z:C||"div",H=(0,n.Z)({},o,{component:B,disabled:z,size:T,color:g,iconColor:r.isValidElement(O)&&O.props.color||g,onDelete:!!P,clickable:A,variant:L}),G=function(e){var a=e.classes,o=e.disabled,t=e.size,c=e.color,n=e.iconColor,r=e.onDelete,l=e.clickable,s=e.variant,d={root:["root",s,o&&"disabled","size".concat((0,f.Z)(t)),"color".concat((0,f.Z)(c)),l&&"clickable",l&&"clickableColor".concat((0,f.Z)(c)),r&&"deletable",r&&"deletableColor".concat((0,f.Z)(c)),"".concat(s).concat((0,f.Z)(c))],label:["label","label".concat((0,f.Z)(t))],avatar:["avatar","avatar".concat((0,f.Z)(t)),"avatarColor".concat((0,f.Z)(c))],icon:["icon","icon".concat((0,f.Z)(t)),"iconColor".concat((0,f.Z)(n))],deleteIcon:["deleteIcon","deleteIcon".concat((0,f.Z)(t)),"deleteIconColor".concat((0,f.Z)(c)),"deleteIcon".concat((0,f.Z)(s),"Color").concat((0,f.Z)(c))]};return(0,i.Z)(d,h,a)}(H),J=B===m.Z?(0,n.Z)({component:C||"div",focusVisibleClassName:G.focusVisible},P&&{disableRipple:!0}):{},Q=null;P&&(Q=y&&r.isValidElement(y)?r.cloneElement(y,{className:(0,l.Z)(y.props.className,G.deleteIcon),onClick:U}):(0,u.jsx)(p,{className:(0,l.Z)(G.deleteIcon),onClick:U}));var X=null;t&&r.isValidElement(t)&&(X=r.cloneElement(t,{className:(0,l.Z)(G.avatar,t.props.className)}));var Y=null;return O&&r.isValidElement(O)&&(Y=r.cloneElement(O,{className:(0,l.Z)(G.icon,O.props.className)})),(0,u.jsxs)(S,(0,n.Z)({as:B,className:(0,l.Z)(G.root,s),disabled:!(!A||!z)||void 0,onClick:F,onKeyDown:function(e){e.currentTarget===e.target&&x(e)&&e.preventDefault(),D&&D(e)},onKeyUp:function(e){e.currentTarget===e.target&&(P&&x(e)?P(e):"Escape"===e.key&&W.current&&W.current.blur()),M&&M(e)},ref:K,tabIndex:_&&z?-1:N,ownerState:H},J,j,{children:[X||Y,(0,u.jsx)(I,{className:(0,l.Z)(G.label),ownerState:H,children:R}),Q]}))}))},31260:function(e,a,o){"use strict";var t=o(78949);a.Z=t.Z},28610:function(e,a,o){"use strict";o.r(a),o.d(a,{capitalize:function(){return c.Z},createChainedFunction:function(){return n.Z},createSvgIcon:function(){return r.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return i},isMuiElement:function(){return s.Z},ownerDocument:function(){return d.Z},ownerWindow:function(){return u.Z},requirePropFactory:function(){return p},setRef:function(){return v},unstable_ClassNameGenerator:function(){return y},unstable_useEnhancedEffect:function(){return f.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return Z},useControlled:function(){return b.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return C.Z},useIsFocusVisible:function(){return h.Z}});var t=o(55902),c=o(14036),n=o(31260),r=o(74223),l=o(83199);var i=function(e,a){return function(){return null}},s=o(19103),d=o(98301),u=o(17602);o(87462);var p=function(e,a){return function(){return null}},v=o(62971).Z,f=o(40162),m=o(67384);var Z=function(e,a,o,t,c){return null},b=o(98278),g=o(89683),C=o(42071),h=o(68221),y={configure:function(e){t.Z.configure(e)}}},67384:function(e,a,o){"use strict";var t=o(96248);a.Z=t.Z},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
//# sourceMappingURL=7089.8a7bf722.chunk.js.map